package com.sservice.commonBusiness.service.impl;

import com.sservice.commonBusiness.e.Comment;
import com.sservice.commonBusiness.mapper.CommentMapper;
import com.sservice.commonBusiness.service.CommentService;
import com.sservice.commonBusiness.vo.CommentVo;
import com.sservice.commonBusiness.vo.PLetterVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * Created by byte_su@163.com on 2018/01/12.
 */
@Service
public class CommentServiceImpl  implements CommentService {

    @Autowired
    private CommentMapper commentMapper;


    @Override
    public List<CommentVo> page(CommentVo commentVo) {
        return commentMapper.page(commentVo);
    }

    @Override
    public Integer pageCount(CommentVo commentVo) {
        return commentMapper.pageCount(commentVo);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(Comment record) {
        return 0;
    }

    @Override
    public int insertSelective(Comment record) {
        return commentMapper.insertSelective(record);
    }

    @Override
    public Comment selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Comment record) {
        return commentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Comment record) {
        return 0;
    }
}
